package cn.jiyun.feign;

import cn.jiyun.dao.lesson.LessonDTO;
import cn.jiyun.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Author 王晨
 * Date 2023/8/23
 */
@FeignClient(value = "day07lesson")
public interface LessonFeign {
    @RequestMapping("/lesson/findCount")
    public R findCount(LessonDTO lessonDTO);

    @RequestMapping("/lesson/NewLesson")
    public R Newlesson();
    @RequestMapping("/lesson/NewLesson2")
    public R Newlesson2();
    @RequestMapping("/lesson/NewLesson3")
    public R Newlesson3();
    @RequestMapping("/lesson/findLesson")
    public R findLesson(@SpringQueryMap LessonDTO lessonDTO);
    @RequestMapping("/lesson/findColor")
    public R findColor(@RequestParam("id") Integer id);

    @RequestMapping("/lesson/zuer")
    public R zuer(LessonDTO lessonDTO);

    @RequestMapping("/lesson/findLessonLogin")
    R findLessonLogin(@SpringQueryMap LessonDTO lessonDTO);

}
